# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-maguro
pkgver=2
pkgrel=15
pkgdesc="Google Galaxy Nexus (GSM)"
url="https://github.com/postmarketOS"
arch="noarch"
license="MIT"
depends="linux-samsung-maguro mkbootimg firmware-samsung-maguro"
makedepends="devicepkg-dev"
install=""
subpackages="$pkgname-mesa"
source="deviceinfo"
options="!check"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

mesa() {
	install_if="$pkgname mesa"
	depends="mesa-dri-swrast"
	mkdir "$subpkgdir"
}

sha512sums="e44e78b362c7414eab0031b559732a18f3adf09cc02b3b9a6c05e1553cfebf91abf9f5364bdbb154d3883bdb71e1b3382b398fa38e1a15385ed2749568329c84  deviceinfo"
